package com.weseal.dry.controller;

import com.weseal.dry.form.GoodsForm;
import common.response.CommonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @author weseal
 * @create 2018/4/3
 */
@Controller()
@RequestMapping("/goods")
public class GoodsController {

	@RequestMapping(value = "/create",method = RequestMethod.GET)
	public String initCreate(){
		return "goods/create";
	}

	@RequestMapping(value = "/create",method = RequestMethod.POST)
	@ResponseBody
	public CommonResult create(@RequestBody GoodsForm form){
		CommonResult result = CommonResult.installSuccess();

		return result;
	}


}
